package com.chilly.inter;

/**
 * Created by Chilly Cui on 2020/11/19.
 */
public interface Formula {

    double calc(int a);

    // default 关键字向接口添加非抽象方法实现。
    default double sqrt(int a){
        return Math.sqrt(a);
    }
}
